package com.tulele.vtool.mapper;

import com.tulele.vtool.model.BrandPromotionSettleInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component(value = "brandPromotionSettleInfoMapper")
public interface BrandPromotionSettleInfoMapper {

    /**
     * 查询品牌结算信息
     * @param brandId
     * @return
     */
    BrandPromotionSettleInfo queryBrandPromotionSettleInfo(@Param("brandId") Integer brandId);

    /**
     * 添加品牌推广结算信息
     * @param brandPromotionSettleInfo
     * @return
     */
    int addBrandPromotionSettleInfo(BrandPromotionSettleInfo brandPromotionSettleInfo);

    /**
     * 更新品牌推广结算信息
     * @param brandPromotionSettleInfo
     * @return
     */
    int updBrandPromotionSettleInfo(BrandPromotionSettleInfo brandPromotionSettleInfo);


    BrandPromotionSettleInfo getPromotionSettleByUserId(@Param("userId")String userId);
}